package com.miplus.ccrm.core.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.base.MPJBaseMapper;
import com.miplus.ccrm.core.controller.vo.aicall.*;
import com.miplus.ccrm.core.pojo.ObCallCase;
import org.apache.ibatis.annotations.Mapper;

/**
* @author pc
* @description 针对表【OB_CALL_CASE(AI外呼表)】的数据库操作Mapper
* @createDate 2024-10-30 17:53:18
* @Entity com.miplus.ccrm.core.pojo.ObCallCase
*/

@Mapper
public interface ObCallCaseMapper extends MPJBaseMapper<ObCallCase> {

    IPage<TotalRepResVo> quyJobTotalReport(Page<Object> objectPage, String jobid, String reporttype, String startdate, String enddate);

    IPage<BatchRepResVo> quyJobBatchReport(Page<Object> objectPage, String jobid, String batchid);

    Integer addBatchRecord(String sql, String clid, Long batchId);

    Integer addAiRecord(String sql, String clid, Long batchId,String fieldsql);

    IPage<BatchAiCallResVo>aiCallSendBatchPage(Page<Object> objectPage, BatchAiCallReqVo paras);
    IPage<BatchDetailAiCallResVo>aiCallSendDetailPage(Page<Object> objectPage, BatchAiCallReqVo paras);

}




